// 物品列表模拟数据
export const mockItems = [
    {
        id: 1,
        name: '苹果电脑',
        category: '电子设备',
        location: '书房',
        quantity: 1,
        price: 12999,
        purchaseDate: '2021-10-15',
        expiryDate: null,
        status: 'active',
        notes: 'MacBook Pro 2021款，M1芯片，16GB内存'
    },
    {
        id: 2,
        name: 'iPhone 13',
        category: '电子设备',
        location: '卧室',
        quantity: 1,
        price: 6799,
        purchaseDate: '2021-11-20',
        expiryDate: null,
        status: 'active',
        notes: '128GB，蓝色'
    },
    {
        id: 3,
        name: '厨房刀具套装',
        category: '厨房用品',
        location: '厨房',
        quantity: 1,
        price: 899,
        purchaseDate: '2022-01-05',
        expiryDate: null,
        status: 'active',
        notes: '德国进口，8件套'
    },
    {
        id: 4,
        name: '洗发水',
        category: '日用品',
        location: '浴室',
        quantity: 2,
        price: 59.9,
        purchaseDate: '2022-03-10',
        expiryDate: '2023-09-10',
        status: 'pending',
        notes: '控油型，500ml'
    },
    {
        id: 5,
        name: '沙发',
        category: '家具',
        location: '客厅',
        quantity: 1,
        price: 5299,
        purchaseDate: '2020-07-22',
        expiryDate: null,
        status: 'active',
        notes: '三人座，灰色布艺'
    },
    {
        id: 6,
        name: '茶几',
        category: '家具',
        location: '客厅',
        quantity: 1,
        price: 1299,
        purchaseDate: '2020-07-22',
        expiryDate: null,
        status: 'active',
        notes: '实木茶几，带抽屉'
    },
    {
        id: 7,
        name: '台灯',
        category: '家居饰品',
        location: '书房',
        quantity: 2,
        price: 199,
        purchaseDate: '2021-05-18',
        expiryDate: null,
        status: 'active',
        notes: 'LED护眼台灯'
    },
    {
        id: 8,
        name: '牙膏',
        category: '日用品',
        location: '浴室',
        quantity: 3,
        price: 19.9,
        purchaseDate: '2022-04-01',
        expiryDate: '2023-10-01',
        status: 'pending',
        notes: '美白型，120g'
    },
    {
        id: 9,
        name: '纸巾',
        category: '日用品',
        location: '客厅',
        quantity: 10,
        price: 29.9,
        purchaseDate: '2022-05-15',
        expiryDate: null,
        status: 'active',
        notes: '抽纸，三层，共10包'
    },
    {
        id: 10,
        name: '电饭煲',
        category: '厨房用品',
        location: '厨房',
        quantity: 1,
        price: 499,
        purchaseDate: '2021-03-30',
        expiryDate: null,
        status: 'inactive',
        notes: '4L容量，智能预约'
    }
];

// 分类列表模拟数据
export const mockCategories = [
    { id: 1, name: '电子设备', count: 2 },
    { id: 2, name: '厨房用品', count: 2 },
    { id: 3, name: '日用品', count: 3 },
    { id: 4, name: '家具', count: 2 },
    { id: 5, name: '家居饰品', count: 1 }
];

// 位置列表模拟数据
export const mockLocations = [
    { id: 1, name: '书房', count: 2 },
    { id: 2, name: '卧室', count: 1 },
    { id: 3, name: '厨房', count: 2 },
    { id: 4, name: '浴室', count: 2 },
    { id: 5, name: '客厅', count: 3 }
];

// 统计数据
export const mockStatistics = {
    // 总览数据
    overview: {
        totalItems: 10,
        totalValue: 28193.5,
        totalCategories: 5,
        totalLocations: 5,
        newItemsThisMonth: 2,
        expiringItems: 2
    },

    // 分类统计
    categoryStats: [
        { name: '电子设备', value: 19798, percentage: 70.2, count: 2 },
        { name: '厨房用品', value: 1398, percentage: 5.0, count: 2 },
        { name: '日用品', value: 199.5, percentage: 0.7, count: 3 },
        { name: '家具', value: 6598, percentage: 23.4, count: 2 },
        { name: '家居饰品', value: 199, percentage: 0.7, count: 1 }
    ],

    // 位置统计
    locationStats: [
        { name: '书房', value: 13198, percentage: 46.8, count: 2 },
        { name: '卧室', value: 6799, percentage: 24.1, count: 1 },
        { name: '厨房', value: 1398, percentage: 5.0, count: 2 },
        { name: '浴室', value: 199.5, percentage: 0.7, count: 2 },
        { name: '客厅', value: 6598, percentage: 23.4, count: 3 }
    ],

    // 月度数据
    monthlyData: [
        { month: '2022-01', count: 1, value: 899 },
        { month: '2022-02', count: 0, value: 0 },
        { month: '2022-03', count: 1, value: 59.9 },
        { month: '2022-04', count: 1, value: 19.9 },
        { month: '2022-05', count: 1, value: 29.9 },
        { month: '2022-06', count: 0, value: 0 }
    ]
};

// 图表数据
export const mockChartData = {
    // 分类饼图数据
    categoryPieData: [
        { name: '电子设备', value: 2 },
        { name: '厨房用品', value: 2 },
        { name: '日用品', value: 3 },
        { name: '家具', value: 2 },
        { name: '家居饰品', value: 1 }
    ],

    // 位置饼图数据
    locationPieData: [
        { name: '书房', value: 2 },
        { name: '卧室', value: 1 },
        { name: '厨房', value: 2 },
        { name: '浴室', value: 2 },
        { name: '客厅', value: 3 }
    ],

    // 金额分布条形图数据
    valueBarsData: {
        categories: ['电子设备', '厨房用品', '日用品', '家具', '家居饰品'],
        values: [19798, 1398, 199.5, 6598, 199]
    },

    // 时间趋势线图数据
    timelineData: {
        months: ['1月', '2月', '3月', '4月', '5月', '6月'],
        itemCounts: [1, 0, 1, 1, 1, 0],
        values: [899, 0, 59.9, 19.9, 29.9, 0]
    }
};

// 用户列表模拟数据
export const mockUsers = [
    {
        id: 1,
        username: 'admin',
        name: '管理员',
        email: 'admin@example.com',
        role: 'admin',
        lastLogin: '2022-05-20 10:30:45'
    },
    {
        id: 2,
        username: 'zhangsan',
        name: '张三',
        email: 'zhangsan@example.com',
        role: 'user',
        lastLogin: '2022-05-19 16:42:10'
    },
    {
        id: 3,
        username: 'lisi',
        name: '李四',
        email: 'lisi@example.com',
        role: 'user',
        lastLogin: '2022-05-18 09:15:30'
    }
];

// 通知数据
export const mockNotifications = [
    {
        id: 1,
        title: '物品即将过期',
        content: '您的洗发水将在30天内过期',
        type: 'warning',
        createTime: '2022-05-15 09:30:00',
        read: false
    },
    {
        id: 2,
        title: '库存不足提醒',
        content: '纸巾库存不足，当前剩余2包',
        type: 'info',
        createTime: '2022-05-14 15:20:00',
        read: true
    },
    {
        id: 3,
        title: '系统更新通知',
        content: '系统将于今晚22:00进行维护更新',
        type: 'system',
        createTime: '2022-05-10 18:00:00',
        read: true
    }
];

// 最近活动数据
export const mockActivities = [
    {
        id: 1,
        type: 'add',
        itemName: '纸巾',
        username: '张三',
        time: '2022-05-15 10:25:33'
    },
    {
        id: 2,
        type: 'edit',
        itemName: 'iPhone 13',
        username: '李四',
        time: '2022-05-14 16:30:45'
    },
    {
        id: 3,
        type: 'delete',
        itemName: '旧电视机',
        username: '管理员',
        time: '2022-05-13 09:12:18'
    },
    {
        id: 4,
        type: 'move',
        itemName: '台灯',
        fromLocation: '卧室',
        toLocation: '书房',
        username: '张三',
        time: '2022-05-12 14:50:22'
    }
];

// 卡片组件示例数据
export const mockCardExamples = [
    {
        title: '最新添加',
        content: '纸巾 x 10',
        footer: '添加时间：2022-05-15',
        variant: 'primary'
    },
    {
        title: '即将过期',
        content: '洗发水 (剩余60天)',
        footer: '过期时间：2023-09-10',
        variant: 'warning'
    },
    {
        title: '价值最高',
        content: 'MacBook Pro',
        footer: '价值：¥12,999',
        variant: 'success'
    },
    {
        title: '库存最多',
        content: '纸巾 (10包)',
        footer: '位置：客厅',
        variant: 'info'
    }
];

// 表格示例分页数据
export const mockPagination = {
    currentPage: 1,
    pageSize: 10,
    total: 36
}; 